// api.js
import axios from 'axios';

const instance = axios.create({
    baseURL: '/api',
});

export const login = (userData) => {
    const config = {
        headers: {
            'Content-Type': 'application/json',
        },
    };

    return instance.post('login', userData, config);
};
